package com.lzc.tlmail.tlmailorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzc.common.to.mq.Orderto;
import com.lzc.common.to.mq.Seckillto;
import com.lzc.common.utils.PageUtils;
import com.lzc.tlmail.tlmailorder.entity.OrderEntity;
import com.lzc.tlmail.tlmailorder.vo.OrderItemvo;
import com.lzc.tlmail.tlmailorder.vo.OrderSubmitrspnvo;
import com.lzc.tlmail.tlmailorder.vo.Ordervo;
import com.lzc.tlmail.tlmailorder.vo.SubmitOrdervo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author lzc
 * @email 1029669636@gmail.com
 * @date 2020-07-26 19:14:57
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderItemvo getOrder() throws ExecutionException, InterruptedException;

    OrderSubmitrspnvo orderSubmit(SubmitOrdervo submitOrdervo);


    OrderEntity getOrderStatusByOrdersn(String ordersn);

    void updateOrderStatus(Orderto orderto);

    List<Ordervo> orderLists(String out_trade_no);

    void seckillOrder(Seckillto seckillto);
}

